#!/usr/bin/env bash

{% for registry in harbor %}
    docker login {{registry["registry"]}} -u{{registry["user"]}} -p{{registry["password"]}}
{% endfor %}

    mkdir -p /var/lib/kubelet
    cp $HOME/.docker/config.json /var/lib/kubelet/config.json